package com.ruihui.activity.pojo;

import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModel;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cf123
 * @since 2018-09-30
 */
@TableName("ruihui_acgoods")
@ApiModel
public class Acgoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 商品id
     */
    private Long goodsid;
    /**
     * 活动id
     */
    private Long acid;
    /**
     * 商品分类id
     */
    private Long catid; 
    /**
     * 活动库存
     */
    private Integer acnum;
    /**
     * 限购数量
     */
    private Integer limitbuy;
    /**
     * 人数
     */
    private Integer groupnum;
    /**
     * 活动价格
     */
    private BigDecimal acprice;
    /**
     * 活动下级名称
     */
    private String gname;
    /**
     * 锁
     */
    @Version
    private Long version;
    /**
     * 开始时间
     */
    private BigDecimal starttime;
    /**
     * 结束时间
     */
    private BigDecimal endtime;
    /**
     * 类型1通用
     */
    private Integer type;
    /**
     * 状态，1开启2关闭
     */
    private Integer state;
    /**
     * 排序
     */
    private Integer sorting;
    /**
     * 次数
     */
    private Integer chanceNum;
    /**
     * 逻辑价格
     */
    private BigDecimal acrdprice;
    /**
     * 编号
     */
    private String acno;
    /**
     * 描述
     */
    private String contents;
    /**
     * 逻辑删除1显示，0删除
     */
    private Integer del;
    
    //商品对象
    @TableField(exist = false)
    private Goods goods;
   
	//活动对象
    @TableField(exist = false)
    private Activity activity; 

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Long goodsid) {
        this.goodsid = goodsid;
    }

    public Long getAcid() {
        return acid;
    }

    public void setAcid(Long acid) {
        this.acid = acid;
    }

    public Integer getAcnum() {
        return acnum;
    }

    public void setAcnum(Integer acnum) {
        this.acnum = acnum;
    }

    public Integer getLimitbuy() {
        return limitbuy;
    }

    public void setLimitbuy(Integer limitbuy) {
        this.limitbuy = limitbuy;
    }

    public BigDecimal getAcprice() {
        return acprice;
    }

    public void setAcprice(BigDecimal acprice) {
        this.acprice = acprice;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public BigDecimal getStarttime() {
        return starttime;
    }

    public void setStarttime(BigDecimal starttime) {
        this.starttime = starttime;
    }

    public BigDecimal getEndtime() {
        return endtime;
    }

    public void setEndtime(BigDecimal endtime) {
        this.endtime = endtime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public Integer getChanceNum() {
        return chanceNum;
    }

    public void setChanceNum(Integer chanceNum) {
        this.chanceNum = chanceNum;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }



	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Activity getActivity() {
		return activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	public BigDecimal getAcrdprice() {
		return acrdprice;
	}

	public void setAcrdprice(BigDecimal acrdprice) {
		this.acrdprice = acrdprice;
	}

	public String getAcno() {
		return acno;
	}

	public void setAcno(String acno) {
		this.acno = acno;
	}



	public Long getCatid() {
		return catid;
	}

	public void setCatid(Long catid) {
		this.catid = catid;
	}


	public Integer getGroupnum() {
		return groupnum;
	}

	public void setGroupnum(Integer groupnum) {
		this.groupnum = groupnum;
	}

	public String toString() {
		return "Acgoods [id=" + id + ", goodsid=" + goodsid + ", acid=" + acid + ", catid=" + catid + ", acnum=" + acnum
				+ ", limitbuy=" + limitbuy + ", groupnum=" + groupnum + ", acprice=" + acprice + ", gname=" + gname
				+ ", version=" + version + ", starttime=" + starttime + ", endtime=" + endtime + ", type=" + type
				+ ", state=" + state + ", sorting=" + sorting + ", chanceNum=" + chanceNum + ", acrdprice=" + acrdprice
				+ ", acno=" + acno + ", contents=" + contents + ", del=" + del + ", goods=" + goods + ", activity="
				+ activity + "]";
	}




	
}
